from day11.Base import Base
from time import sleep
from selenium.webdriver.common.by import By
class Page(Base):
    denglu = (By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    username = (By.NAME,'username')
    password = (By.NAME,'password')
    denglu2 = (By.CLASS_NAME,'finish-btn')
    shousuokuang = (By.CLASS_NAME,'search-input')
    sousou = (By.CLASS_NAME,'search-input-btn')
    def set_01(self):
        self.click(self.denglu)
    def set_02(self):
        self.send_keys(self.username,'15232008902')
    def set_03(self):
        self.send_keys(self.password,'123456')
    def set_04(self):
        self.click(self.denglu2)
    def set_05(self):
        self.send_keys(self.shousuokuang,'老太')
    def set_06(self):
        self.click(self.sousou)
    def zhixing(self):
        self.url('http://10.59.9.14:7003/')
        self.set_01()
        self.set_02()
        self.set_03()
        sleep(10)
        self.set_04()
        sleep(2)
        self.set_05()
        self.set_06()

